package com.design.structural.Adapter;

import com.design.structural.Adapter.Animal.Animal;
import com.design.structural.Adapter.AnimalFactory.AnimalFactory;
import com.design.structural.Adapter.AnimalFactory.DogFactory;

/**
 * 描述: Todo
 *
 * @author YuJunJie
 * @create 2019-04-01 15:39
 */
public class Client {
    public static void main(String[] args){
        AnimalFactory animalFactory = new DogFactory();
        Animal animal = animalFactory.createAnimal();
        AnimalAdapter adapter02 = new AnimalAdapter(animal);
        adapter02.cry();
        adapter02.move();
    }
}
